package com.niiwoo.civet.trade.dto.common;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

@Setter
@Getter
public class LinkAgeConfigDTO implements Serializable{
    //("产品类型")
    private Configure productType;

    //("期限")
    private Configure periodType;

    //("还款方式")
    private Configure repaymentType;

    //("参考年化利率")
    private Configure rateType;

    //("可投金额")
    private Configure investableType;

    //("是否优惠 只有债转标 才有这个是否优惠选项联动")
    private Configure favorableType;


    @Getter
    @Setter
    //("键值对关系")
    public static class Configure implements Serializable{
        //"名称")
        private String name;
        //"值")
        private Object value;
        //("排序")
        private Integer sort;
    }

    @Getter
    @Setter
    /**参数对象*/
    public static class Config implements Serializable{
        /**标题*/
        private String title;
        /**最小值*/
        private BigDecimal minval;
        /**与最小值类型关系,1 大于 2 大于等于 3等于*/
        private Byte minvalCalSymbol;
        /**最大值*/
        private BigDecimal maxval;
        /**与最大值关系 1 小于 2 小于等于 3等于*/
        private Byte maxvalCalSymbol;
        /**利率-排序值*/
        private Integer seq;
        /**期限-日天 1月，2天*/
        private Byte termUnit;
    }
}
